/**
 * User: liu
 * Date: Jan 25, 2009
 * Time: 12:22:26 AM
 */

public class CommonUtil {
    public static boolean isEmpty(it) {
        if (it == null)
            return true
        if ("" == it)
            return true
        return false
    }

    public static boolean isNumber(it) {
        if (isEmpty(it))
            return false
        try {
            new BigDecimal(it)
            return true
        } catch (NumberFormatException e) {
            return false
        }

    }

}